home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Laboratorio Interattivo Deagostini
/
laboratorio interattivo deagostini.bin
/
swf
/
188.swf
/
scripts
/
frame_1
/
PlaceObject2_43_10
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2003-01-05
|
1KB
|
41 lines
onClipEvent(enterFrame){
function verifica()
{
punteggio = 0;
i = 0;
lRisultati = new Array(lista.length);
i == 0;
while(lista.length - 1 >= i)
{
nomeClip = lista[i][0];
sceltaFatta = _parent.mask.esercizio[nomeClip].scelta;
trace("Scelta effettuata " + _parent.mask.esercizio[nomeClip].scelta);
if(sceltaFatta == lista[i][1])
{
punteggio += lista[i][2];
_parent.mask.esercizio[nomeClip].responso.gotoAndStop("Giusto");
var GiustoSbagliato = 1;
}
else
{
_parent.mask.esercizio[nomeClip].responso.gotoAndStop("Sbagliato");
var GiustoSbagliato = 0;
}
lRisultati[i] = "[" + (i + 1) + "," + sceltaFatta + "," + lista[i][1] + "," + GiustoSbagliato + "]";
i += 1;
}
_root.risultato = punteggio / TotPunteggio * 10;
getURL("Finito:[" + lRisultati + "]","");
_root.TempoScaduto = 0;
_root.AvviaVerifica = 0;
}
if(_root.TempoScaduto == "1")
{
Verifica();
}
if(_root.AvviaVerifica == "1")
{
Verifica();
}
}